﻿@using FwProject.Com.Dto
@model List<ShopOrderDetailsOutputDto>
@{
}
<style>
    .layui-table tr th, .layui-table tr td {
        text-align: center;
        padding: 9px 15px !important
    }
</style>

<div class="layui-form" style="padding:10px;">
    <table class="layui-table">
        @*<colgroup>
                <col width="100">
                <col width="100">
                <col width="100">
                <col width="50">
                <col width="100">
            </colgroup>*@
        <thead>
            <tr>
                <th>商品名称</th>
                <th>购买数量</th>
                <th>单价</th>
                <th>优惠金额</th>
                <th>发货时间</th>
                <th>发货状态</th>
                <th>评价状态</th>
                <th>结算状态</th>
                <th>退货状态</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@(item.ShopName+item.SkuName)</td>
                    <td>@item.ProductCount</td>
                    <td>@item.PayPrice</td>
                    <td>@item.DiscountPrice</td>
                    <td>@(item.DeliveryTime.HasValue ? item.DeliveryTime.Value.ToString("yyyy-MM-dd HH:mm") : "")</td>
                    <td>@item.DeliveryStatus</td>
                    <td>@item.EvaluateStatus</td>
                    <td>@item.SettlementStatus</td>
                    <td>@item.Returngoods</td>
                </tr>
            }
        </tbody>
    </table>
</div>
@section scripts{
    <script type="text/javascript">
        var form, layer, layedit;
        layui.use(['form', 'layedit', 'layer'], function () {
            layedit = layui.layedit;
            form = layui.form;
            layer = layui.layer;
        })
    </script>
}

